package cn.zhentao.charge.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 充电记录对象 charge_record
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public class ChargeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表主键 */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 充电枪id */
    @Excel(name = "充电枪id")
    private Integer stationGunId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 电量度数 */
    @Excel(name = "电量度数")
    private BigDecimal quantity;

    /** 当前实际价格 */
    @Excel(name = "当前实际价格")
    private BigDecimal price;

    /** 充电状态 0未充电 1已充电 */
    @Excel(name = "充电状态 0未充电 1已充电")
    private Integer chargeStatus;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal amount;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setStationGunId(Integer stationGunId) 
    {
        this.stationGunId = stationGunId;
    }

    public Integer getStationGunId() 
    {
        return stationGunId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setChargeStatus(Integer chargeStatus) 
    {
        this.chargeStatus = chargeStatus;
    }

    public Integer getChargeStatus() 
    {
        return chargeStatus;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("stationGunId", getStationGunId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("chargeStatus", getChargeStatus())
            .append("amount", getAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
